package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "menu")
@ApiModel(description = "权限表")
public class Menu implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父级编号")
    private Integer parentId;

    @TableField(value = "order_num")
    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "请求地址")
    private String url;

    @ApiModelProperty(value = "打开方式")
    private String target;

    @ApiModelProperty(value = "菜单类型")
    private String type;

    @ApiModelProperty(value = "菜单状态")
    private Integer visible;

    @ApiModelProperty(value = "是否刷新")
    private Integer refresh;

    @ApiModelProperty(value = "权限标识")
    private String perms;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建者")
    private Integer createBy;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField(value = "update_by")
    @ApiModelProperty(value = "更新者")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    private String update_time;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "逻辑删除（1：已删除 0：未删除）")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备用2")
    private String by2;

}
